import { Layout } from '@/utils/routerHelper'

const { t } = useI18n()

const agentRouter: AppRouteRecordRaw = {
  path: '/agent',
  component: Layout,
  name: 'Agent',
  meta: {
    title: 'AI助手',
    icon: 'ep:cpu',
    alwaysShow: true
  },
  children: [

    {
      path: 'dashboard',
      component: () => import('@/views/dashboard/index.vue'),
      name: 'AgentDashboard',
      meta: {
        title: '智能管控大屏',
        icon: 'ep:monitor',
        noCache: false,
        affix: true
      }
    },
    {
      path: 'project-manage/product',
      component: () => import('@/views/agent/project_manage/product/index.vue'),
      name: 'ProductManage',
      meta: {
        title: '产品管理',
        hidden: true,
        noCache: false
      }
    },
    {
      path: 'project-manage/product/detail/:id',
      component: () => import('@/views/agent/project_manage/product/detail.vue'),
      name: 'ProductDetail',
      meta: {
        title: '产品详情',
        hidden: true,
        noCache: false
      }
    },
    {
      path: 'project-manage/project',
      component: () => import('@/views/agent/project_manage/project/index.vue'),
      name: 'ProjectManage',
      meta: {
        title: '项目管理',
        hidden: true,
        noCache: false
      }
    },
    {
      path: 'project-manage/project/detail/:id',
      component: () => import('@/views/agent/project_manage/project/detail.vue'),
      name: 'ProjectDetail',
      meta: {
        title: '项目详情',
        hidden: true,
        noCache: false
      }
    },
    
   
    {
      path: 'project-manage/wall',
      component: () => import('@/views/agent/project_manage/wall/index.vue'),
      name: 'WallManage',
      meta: {
        title: '公司公开墙',
        hidden: true,
        noCache: false
      }
    },
    {
      path: 'project-manage/account',
      component: () => import('@/views/agent/project_manage/account/index.vue'),
      name: 'AccountManage',
      meta: {
        title: '账号管理',
        hidden: true,
        noCache: false
      }
    },
    
    {
      path: 'project',
      component: () => import('@/views/agent/project/index.vue'),
      name: 'AgentProject',
      meta: {
        title: '项目列表',
        icon: 'ep:folder',
        noCache: false
      }
    },
    {
      path: 'configuration',
      component: () => import('@/views/agent/configuration/index.vue'),
      name: 'Configuration',
      meta: {
        title: '配置管理',
        icon: 'ep:setting',
        noCache: false
      }
    },
    {
      path: 'table',
      component: () => import('@/views/agent/table/index.vue'),
      name: 'AgentTable',
      meta: {
        title: '功能表',
        icon: 'ep:grid',
        noCache: false
      }
    },
    {
      path: 'prompt',
      component: () => import('@/views/agent/prompt/index.vue'),
      name: 'AgentPrompt',
      meta: {
        title: '提示词管理',
        icon: 'ep:document',
        noCache: false
      }
    }
  ]
}

export default agentRouter
